//
//  HomeTitleView.swift
//  倔强的大轮胎
//
//  Created by Eiji on 17/3/22.
//  Copyright © 2017年 张迎港. All rights reserved.
//

import UIKit

class HomeTitleView: UIView {
    
    
    
    override init(frame: CGRect) {
        let view = UIView(frame: CGRect(x: 0, y: 420, width:UIScreen.main.bounds.size.width , height: 40))
        view.backgroundColor = #colorLiteral(red: 0, green: 0.2369638085, blue: 0.3877450228, alpha: 1)
       
        let titleLab = UILabel(frame: CGRect(x: 0, y: 10, width: UIScreen.main.bounds.size.width, height: 10))
        titleLab.text = "匠心打造每一条好胎"
        titleLab.textColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
        titleLab.font = UIFont.systemFont(ofSize: 13, weight: 5)
        titleLab.textAlignment = .center
        
        let subheadLab = UILabel(frame: CGRect(x: 0, y: 25, width: UIScreen.main.bounds.size.width, height: 10))
        subheadLab.text = "Ingenuity to create each good tire"
        subheadLab.textColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
        
        subheadLab.font = UIFont.systemFont(ofSize: 9, weight: 3)
        subheadLab.textAlignment = .center
        
        view.addSubview(subheadLab)
        view.addSubview(titleLab)
        
        super.init(frame: CGRect(x: 0, y: 0, width:UIScreen.main.bounds.size.width , height: 460))
        self.addSubview(view)
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
